package org.domain.acount.session;

import org.domain.acount.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("tipocontaList")
public class TipocontaList extends EntityQuery<Tipoconta> {

	private static final String EJBQL = "select tipoconta from Tipoconta tipoconta";

	private static final String[] RESTRICTIONS = { "lower(tipoconta.nome) like lower(concat(#{tipocontaList.tipoconta.nome},'%'))", };

	private Tipoconta tipoconta = new Tipoconta();

	public TipocontaList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public Tipoconta getTipoconta() {
		return tipoconta;
	}
}
